#include "master.h"
#include "mFnc.h"

//extern volatile char panTilt_State;
//extern volatile char temp;

//unsigned char m_STATE;


char CalculateChecksum(char cmd1, char cmd2)
{
	char checksum = 0x00;

	//checksum ^= CMD_HEAD;   // < start 0x3E
	//checksum ^= 2;      // broj komadi
	checksum ^= cmd1;   // komada1
	checksum ^= cmd2;   // komada2

	return checksum;
}